<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- v-bind可以让属性指向某个你需要绑定属性 -->
        <h2 study="js">{{msg}}</h2>
        <h2 v-bind:study="study">{{msg+2}}</h2>
        <h2 v-bind:study="count+1">{{msg+3}}</h2>
        <h2 v-bind:study="ishot?'热':'冷'">{{msg+4}}</h2>
        <h2 v-bind:src="'http://www.baidu.com/'+'img'">{{msg+5}}</h2>
    </div>
    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            el:'#app',
            data:{
                msg:'This Vue',
                study:'stt',
                count:1,
                ishot:true,
                img:'02.jpg'
            }
        })
    </script>
</body>
</html>